| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var chai = require('chai'); |
||
| 11 | describe('Meta', function() { |
||
| 12 | before( function(done) { |
||
| 13 | Manager.instance.init() |
||
| 14 | .then(function () { |
||
| 15 | |||
| 16 | this.fixture = { |
||
| 17 | tag: fse.readFileSync(__dirname + '/fixtures/templates/article.html', 'utf8') |
||
| 18 | } |
||
| 19 | done() |
||
| 20 | |||
| 21 | }.bind(this)) |
||
| 22 | }); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * cmsData.meta.add |
||
| 26 | * |
||
| 27 | */ |
||
| 28 | it('cmsData.metas.add()', function() { |
||
| 29 | var json = {abe_meta: {link: 'article.html'}}; |
||
| 30 | cmsData.metas.add('article', json); |
||
| 31 | chai.expect(json.abe_meta.date).to.not.be.undefined; |
||
| 32 | }); |
||
| 33 | }); |
||
| 34 |